package org.example.zookeeper.inspect;

public class ServiceInfo {
    private String service;
    private int consumers;
    private int configurators;
    private int routers;
    private int providers;

    public ServiceInfo(String service) {
        this.service = service;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public int getConsumers() {
        return consumers;
    }

    public void setConsumers(int consumers) {
        this.consumers = consumers;
    }

    public int getConfigurators() {
        return configurators;
    }

    public void setConfigurators(int configurators) {
        this.configurators = configurators;
    }

    public int getRouters() {
        return routers;
    }

    public void setRouters(int routers) {
        this.routers = routers;
    }

    public int getProviders() {
        return providers;
    }

    public void setProviders(int providers) {
        this.providers = providers;
    }

    public static String header() {
        return "service,providers,consumers,configurators,routers";
    }

    @Override
    public String toString() {
        return service + "," + providers + "," + consumers + "," + configurators + "," + routers;
    }
}
